/**
 * Author : Christopher Blanchard
 * 
 * This page is for activity with regards to signing in, this class will be responsible for calling DTOs'
 * and DAO's and also for some of the visual elements on the login page.
 */

package com.tcs.mobile.csrv01;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class LoginActivity extends Activity {
	
	private Button loginButton;
	
	final LoginActivity mThis = this;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login);
		
		loginButton = (Button)findViewById(R.id.sign_in_button);
		loginButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				
				Intent intent = new Intent(mThis, UserCalendar.class);
				startActivity(intent);	
			}	
		});
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.login, menu);
		return true;
	}

}
